set -x

graph_dir=$1 # graph_domain
graph_basename=`basename $graph_dir`

rm -rf HCLG.fst words.txt
ln -s $graph_dir/HCLG.fst ./
ln -s $graph_dir/words.txt ./

rm -rf hotword_resource/{phones,phones.txt}
ln -s ../$graph_basename/lang_new/phones hotword_resource/
ln -s ../$graph_basename/lang_new/phones.txt hotword_resource/
